package org.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.poi.hpsf.Decimal;

import java.sql.Time;
import java.util.Date;

@TableName("technician")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Technician {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    @TableField("technician_name")
    private String technicianName;


    @TableField("service_total")
    private Integer serviceTotal;

    @TableField("status")
    private String status;

    @TableField("img")
    private String img;

    @TableField("collect")
    private String collect;

    @TableField("level")
    private String level;

    @TableField("rating")
    private String rating;

    @TableField("early_time")
    @JsonFormat(pattern = "HH:mm",timezone = "GMT+8")
    private Time earlyTime;

    @TableField("distance")
    private Double distance;
    @TableField("salary")
    private Integer salary;

    @TableField("say")
    private Integer say;
    @TableField("love")
    private Integer love;


}
